<%--
  Created by IntelliJ IDEA.
  User: empty
  Date: 2025/5/29
  Time: 21:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>注册用户</title>
  <style>

    body {
      font-family: 'Helvetica Neue', Arial, sans-serif;
      background-color: #f8fafc;
      margin: 0;
      padding: 0;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }


    .container {
      max-width: 600px;
      margin: 0 auto;
      padding: 20px;
    }


    #logout {
      background-color: #3b82f6;
      padding: 10px 20px;
      display: flex;
      justify-content: flex-end;
    }

    #logout button {
      background-color: #ffffff;
      color: #3b82f6;
      border: none;
      padding: 8px 16px;
      border-radius: 4px;
      cursor: pointer;
      transition: background-color 0.2s;
    }

    #logout button:hover {
      background-color: #e0e7ff;
    }


    #app {
      background-color: #ffffff;
      border-radius: 8px;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      padding: 24px;
      margin: 24px 0;
      transition: transform 0.2s, box-shadow 0.2s;
    }

    #app:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }


    #app form {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    #app label {
      display: flex;
      flex-direction: column;
      gap: 4px;
      font-weight: 500;
      color: #1e293b;
    }

    #app input {
      padding: 10px 12px;
      border: 1px solid #cbd5e1;
      border-radius: 4px;
      font-size: 16px;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    #app input:focus {
      outline: none;
      border-color: #3b82f6;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    }

    #app button {
      background-color: #3b82f6;
      color: #ffffff;
      border: none;
      padding: 12px 16px;
      border-radius: 4px;
      font-size: 16px;
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.2s;
      margin-top: 8px;
    }

    #app button:hover {
      background-color: #2563eb;
    }

    .message {
      padding: 12px;
      border-radius: 4px;
      font-size: 16px;
      text-align: center;
    }

    .message:empty {
      display: none;
    }

    .message:not(:empty) {
      animation: fadeIn 0.5s ease-in-out;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }
  </style>
</head>
<body>
<div id="logout">
  <form action="Login-community" name="action" method="get">
    <input type="hidden" name="action" value="returnLogin">
    <button type="submit">返回登录</button>
  </form>
</div>
<div class="container">
  <div id="app">
    <form action="register" method="post">
      <label>id:<input type="text" name="user_id"></label>
      <label>name:<input type="text" name="user_name"></label>
      <label>password:<input type="text" name="password"></label>
      <label>role:<input type="text" name="role"></label>
      <button type="submit">注册</button>
    </form>
  </div>
  <div class="message">${message}</div>
</div>
</body>
</html>

